<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单详情</title>
	<%-- 静态包含base标签，css样式，jQuery文件 --%>
	<%@include file="/pages/common/head.jsp" %>
	<script type="text/javascript">
	</script>
</head>
<body>

	<div id="header">
			<img class="logo_img" alt="" src="static/img/logo.gif" >
			<span class="wel_word">订单详情</span>
		<%@ include file="/pages/common/login_success_menu.jsp"%>
	</div>

	<div id="main">

		<table>
			<tr>
				<td>商品名称</td>
				<td>数量</td>
				<td>单价</td>
				<td>总价</td>
			</tr>
			<c:if test="${not empty requestScope.orderItems}">
				<c:forEach items="${requestScope.orderItems}" var="order">
					<tr>
						<td>${order.name}</td>
						<td>${order.count}</td>
						<td>${order.price}</td>
						<td>${order.totalPrice}</td>
					</tr>
<%--					另一种写法--%>
<%--					<tr>--%>
<%--						<td>${entry.value.name}</td>--%>
<%--						<td>${entry.value.count}</td>--%>
<%--						<td>${entry.value.price}</td>--%>
<%--						<td>${entry.value.totalPrice}</td>--%>
<%--						<td><a href="#">删除</a></td>--%>
<%--					</tr>--%>
				</c:forEach>
			</c:if>


		</table>


	</div>

	<%-- 静态包含页脚内容 --%>
	<%@include file="/pages/common/footer.jsp"%>
</body>
</html>
